package com.maomao.feign;

import org.springframework.stereotype.Component;

import com.maomao.entity.User;

@Component
public class FeignClientFallback implements UserFeignClient {

	@Override
	public User findById(Integer id) {
		User user = new User();
		user.setId(-1);
		user.setUserName("默认用户");
		return user;
	}

}
